extends "../xinaoerliang-1/xinaoerliang-1.gd"


func _extInit():
	._extInit()
	lv = 2             #等级的设置
	addSkill("护盾上限为1万，造成非特效伤害时，获得其数值的30%护盾", "护盾充能")
	shieldLimit = 10000
var p4 = 0.5
func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType != sys.AtkType.EFF and atkInfo.hurtVal > 1:
		var num = atkInfo.hurtVal*0.3
		plusShield(num)
		if lv > 3:
			for i in getCellChas(cell, 2, 2):
				if i == self or i.ename == "xinaoerliang":continue
				i.plusShield(num*p4)